package top.likeqc.service.impl;

import top.likeqc.entity.Grade;
import top.likeqc.mapper.GradeMapper;
import top.likeqc.service.IGradeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * <p>
 * 年级表 服务实现类
 * </p>
 *
 * @author likeqc
 * @since 2022-04-10
 */
@Service
public class GradeServiceImpl extends ServiceImpl<GradeMapper, Grade> implements IGradeService {

    /**
     * 通过id获取班级信息，缓存优化
     * @param id
     * @return
     */
    @Override
    public Grade getById(Serializable id) {
        // TODO 缓存优化
        return super.getById(id);
    }
}
